package com.gxwy.zizhanghu.form;

import java.sql.Timestamp;



import javax.persistence.*;

import com.gxwy.yonghuziliao.form.YongHuZiLiao;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Zizhanghu entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "zizhanghu", catalog = "test")
public class ZiZhangHu {

	// Fields

	private Integer id;
	private YongHuZiLiao yonghuziliao;
	private String zhanghumingcheng;
	private String chuzhong;
	private String bizhong;
	private String chaohuibiaozhi;
	private Float yue;
	private Float keyongyue;
	private Timestamp kaihuriqi;
	private Integer cunqi;
	private Integer xucuncunqi;
	private String zhuangtai;
	private String zhanghuzhanghao;

	// Constructors

	/** default constructor */
	public ZiZhangHu () {
	}

	/** minimal constructor */


	/** full constructor */
	

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY )
	@JoinColumn(name = "yonghuziliao_id")
	public YongHuZiLiao getYonghuziliao() {
		return this.yonghuziliao;
	}

	public void setYonghuziliao(YongHuZiLiao yonghuziliao) {
		this.yonghuziliao = yonghuziliao;
	}

	@Column(name = "zhanghumingcheng", length = 128)
	public String getZhanghumingcheng() {
		return this.zhanghumingcheng;
	}

	public void setZhanghumingcheng(String zhanghumingcheng) {
		this.zhanghumingcheng = zhanghumingcheng;
	}

	@Column(name = "chuzhong", length = 16)
	public String getChuzhong() {
		return this.chuzhong;
	}

	public void setChuzhong(String chuzhong) {
		this.chuzhong = chuzhong;
	}

	@Column(name = "bizhong", length = 16)
	public String getBizhong() {
		return this.bizhong;
	}

	public void setBizhong(String bizhong) {
		this.bizhong = bizhong;
	}

	@Column(name = "chaohuibiaozhi", length = 16)
	public String getChaohuibiaozhi() {
		return this.chaohuibiaozhi;
	}

	public void setChaohuibiaozhi(String chaohuibiaozhi) {
		this.chaohuibiaozhi = chaohuibiaozhi;
	}

	@Column(name = "yue", precision = 12, scale = 0)
	public Float getYue() {
		return this.yue;
	}

	public void setYue(Float yue) {
		this.yue = yue;
	}

	@Column(name = "keyongyue", precision = 12, scale = 0)
	public Float getKeyongyue() {
		return this.keyongyue;
	}

	public void setKeyongyue(Float keyongyue) {
		this.keyongyue = keyongyue;
	}

	@Column(name = "kaihuriqi", nullable =true, length = 19)
	public Timestamp getKaihuriqi() {
		return this.kaihuriqi;
	}

	public void setKaihuriqi(Timestamp kaihuriqi) {
		this.kaihuriqi = kaihuriqi;
	}

	@Column(name = "cunqi")
	public Integer getCunqi() {
		return this.cunqi;
	}

	public void setCunqi(Integer cunqi) {
		this.cunqi = cunqi;
	}

	@Column(name = "xucuncunqi")
	public Integer getXucuncunqi() {
		return this.xucuncunqi;
	}

	public void setXucuncunqi(Integer xucuncunqi) {
		this.xucuncunqi = xucuncunqi;
	}

	@Column(name = "zhuangtai", length = 16)
	public String getZhuangtai() {
		return this.zhuangtai;
	}

	public void setZhuangtai(String zhuangtai) {
		this.zhuangtai = zhuangtai;
	}

	@Column(name = "zhanghuzhanghao", nullable = false, length = 128)
	public String getZhanghuzhanghao() {
		return this.zhanghuzhanghao;
	}

	public void setZhanghuzhanghao(String zhanghuzhanghao) {
		this.zhanghuzhanghao = zhanghuzhanghao;
	}

}
